<?php
/*
Plugin Name: Alertas Widget
Plugin URI: http://rosarioaltoque.com.ar
Description: Un widget para mostrar las alertas
Author: Pampacom CDT
Author URI: http://pampacomcdt.com.ar
Version: 0.4
*/
error_reporting(E_ALL);
add_action("widgets_init", array('Widget_Alertas', 'register'));
class Widget_Alertas extends WP_Widget {
	function control(){
    	echo 'I am a control panel';
	}
	function widget($args){
    	echo $args['before_widget'];
	    echo $args['before_title'] . 'Alertas' . $args['after_title'];
    	echo 'Las alertas aqui (ni idea como)';
	    echo $args['after_widget'];
	}
	function register(){
		register_sidebar_widget('Alertas', array('Widget_Alertas', 'widget'));
		register_widget_control('Alertas', array('Widget_Alertas', 'control'));
	}
}

?>
